package com.runoob;

import com.runoob.food.burger.ChickenBurger;
import com.runoob.food.drink.Coke;
import com.runoob.food.drink.Pepsi;
import com.runoob.food.burger.VegBurger;

/**
 * 套餐创建者
 * <p>
 *
 * </p>
 *
 * @author zenglei
 * @date 2023/05/30/ 15:26
 */
public class MealBuilder {

    /**
     * 建造套餐对象
     *
     * <p>
     * {@link Meal}
     * </p>
     *
     * @return
     */
    public Meal prepareVegMeal() {
        Meal meal = new Meal();
        meal.addItem(new VegBurger());
        meal.addItem(new Coke());
        return meal;
    }

    /**
     * 建造套餐对象
     *
     * <p>
     * {@link Meal}
     * </p>
     *
     * @return
     */
    public Meal prepareNonVegMeal() {
        Meal meal = new Meal();
        meal.addItem(new ChickenBurger());
        meal.addItem(new Pepsi());
        return meal;
    }

}
